package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class Entrust   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("code")
  private String code = null;

  @JsonProperty("entrustPrice")
  private String entrustPrice = null;

  @JsonProperty("entrustTotal")
  private String entrustTotal = null;

  @JsonProperty("entrustDirect")
  private String entrustDirect = null;

  @JsonProperty("freeAmount")
  private String freeAmount = null;

  @JsonProperty("entrustStatus")
  private String entrustStatus = null;

  @JsonProperty("bargainAmount")
  private String bargainAmount = null;

  public Entrust name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 昵称
   * @return name
  **/
  @ApiModelProperty(example = "投顾", value = "昵称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Entrust code(String code) {
    this.code = code;
    return this;
  }

  /**
   * 编码
   * @return code
  **/
  @ApiModelProperty(example = "003", value = "编码")


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public Entrust entrustPrice(String entrustPrice) {
    this.entrustPrice = entrustPrice;
    return this;
  }

  /**
   * 委托价格
   * @return entrustPrice
  **/
  @ApiModelProperty(example = "111", value = "委托价格")


  public String getEntrustPrice() {
    return entrustPrice;
  }

  public void setEntrustPrice(String entrustPrice) {
    this.entrustPrice = entrustPrice;
  }

  public Entrust entrustTotal(String entrustTotal) {
    this.entrustTotal = entrustTotal;
    return this;
  }

  /**
   * 委托数量
   * @return entrustTotal
  **/
  @ApiModelProperty(example = "111", value = "委托数量")


  public String getEntrustTotal() {
    return entrustTotal;
  }

  public void setEntrustTotal(String entrustTotal) {
    this.entrustTotal = entrustTotal;
  }

  public Entrust entrustDirect(String entrustDirect) {
    this.entrustDirect = entrustDirect;
    return this;
  }

  /**
   * 委托方向/委托类型
   * @return entrustDirect
  **/
  @ApiModelProperty(example = "买入", value = "委托方向/委托类型")


  public String getEntrustDirect() {
    return entrustDirect;
  }

  public void setEntrustDirect(String entrustDirect) {
    this.entrustDirect = entrustDirect;
  }

  public Entrust freeAmount(String freeAmount) {
    this.freeAmount = freeAmount;
    return this;
  }

  /**
   * 成交数量
   * @return freeAmount
  **/
  @ApiModelProperty(example = "11", value = "成交数量")


  public String getFreeAmount() {
    return freeAmount;
  }

  public void setFreeAmount(String freeAmount) {
    this.freeAmount = freeAmount;
  }

  public Entrust entrustStatus(String entrustStatus) {
    this.entrustStatus = entrustStatus;
    return this;
  }

  /**
   * 委托状态
   * @return entrustStatus
  **/
  @ApiModelProperty(example = "买入", value = "委托状态")


  public String getEntrustStatus() {
    return entrustStatus;
  }

  public void setEntrustStatus(String entrustStatus) {
    this.entrustStatus = entrustStatus;
  }

  public Entrust bargainAmount(String bargainAmount) {
    this.bargainAmount = bargainAmount;
    return this;
  }

  /**
   * 成交均价
   * @return bargainAmount
  **/
  @ApiModelProperty(example = "11", value = "成交均价")


  public String getBargainAmount() {
    return bargainAmount;
  }

  public void setBargainAmount(String bargainAmount) {
    this.bargainAmount = bargainAmount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Entrust entrust = (Entrust) o;
    return Objects.equals(this.name, entrust.name) &&
        Objects.equals(this.code, entrust.code) &&
        Objects.equals(this.entrustPrice, entrust.entrustPrice) &&
        Objects.equals(this.entrustTotal, entrust.entrustTotal) &&
        Objects.equals(this.entrustDirect, entrust.entrustDirect) &&
        Objects.equals(this.freeAmount, entrust.freeAmount) &&
        Objects.equals(this.entrustStatus, entrust.entrustStatus) &&
        Objects.equals(this.bargainAmount, entrust.bargainAmount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, code, entrustPrice, entrustTotal, entrustDirect, freeAmount, entrustStatus, bargainAmount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Entrust {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    entrustPrice: ").append(toIndentedString(entrustPrice)).append("\n");
    sb.append("    entrustTotal: ").append(toIndentedString(entrustTotal)).append("\n");
    sb.append("    entrustDirect: ").append(toIndentedString(entrustDirect)).append("\n");
    sb.append("    freeAmount: ").append(toIndentedString(freeAmount)).append("\n");
    sb.append("    entrustStatus: ").append(toIndentedString(entrustStatus)).append("\n");
    sb.append("    bargainAmount: ").append(toIndentedString(bargainAmount)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

